package com.fengzai;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

import java.util.List;

/**
 * Created by  峰仔  on 2017-07-30
 */
//声明
@Mojo(name = "fengfeng", defaultPhase = LifecyclePhase.PACKAGE)
public class FengzaiMojo extends AbstractMojo {
    @Parameter
    private String msg;
    @Parameter
    private List<String> list;
    @Parameter(property = "args")
    private String args;

    public void execute() throws MojoExecutionException, MojoFailureException {
        System.out.println("峰仔手写的插件..." + msg);
        System.out.println("峰仔手写的插件..." + list);
        System.out.println("峰仔手写的插件..." + args);
    }
}
